package luogu.rookie;

import java.util.Scanner;

public class P1046_摘苹果 {

    public static void main(String[] args) {

        int[] AppleHeights = new int[10];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 10; i++) {
            int AppleHeight = sc.nextInt();
            AppleHeights[i] = AppleHeight;
        }
        int taotao = sc.nextInt() + 30;
        int sum = 0;
        for (int i = 0; i < 10; i++) {
            if (taotao >= AppleHeights[i]){
                sum++;
            }
        }
        System.out.println(sum);

    }
}
